#!/usr/bin/env python

import math

height = float(input())
radians = math.radians(float(input()))
sin_radians = math.sin(radians)

length = height / sin_radians
print(length)
